package Test03;
//**练习2：**打印1~100之间所有是7的倍数的整数的个数及总和（体会设置计数器的思想）
public class Demo11 {
    public static void main(String[] args) {
        int count = 0;
        int sum = 0;
        for (int i = 0; i <= 100; i++) {
          if (i % 7 == 0) {
              sum += i;
              count++;
          }
        }
        System.out.println(count);
        System.out.println(sum);
    }
}
